package com.itheima.mapper;

import com.itheima.ship.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.ShipVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 微信用户 Mapper 接口
 * </p>
 *
 * @author 郑哥
 * @since 2024-05-13
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select  * from user where openid = #{openId}")
    User getByOpenId(String openid);



    @Select("select  * from ship_data where id = #{id}")
    ShipVO getData(Long id);
}
